import { http } from '@/utils/request.js'

const patentService = {
  list: (data) => {
    return http.get('/system/patent/patentList', data)
  },
  withdraw: (data) => {
    return http.post(`/system/patent/cancelPatentById?patentId=${data?.patentId}`, null)
  },
  getPatent: (patentId) => {
    return http.get(`/system/patent/zl/${patentId}`)
  },
  updateStatusByFile: (data) => {
    return http.post(`/system/patent/updateStatusByFile`, data)
  },
  addStatusToYjj: (data) => {
    return http.post(`/system/patent/addZlStatusToYjj?patentId=${data?.patentId}`, null)
  },
  dealNoRegisterInfoData: (data) => {
    return http.post('/system/patent/dealNoRegisterInfoData', data)
  },
  resetPatent: (id) => {
    return http.put(`/system/patent/resetPatent/${id}`, null)
  },
  selectReadyConfirmPage: (data) => {
    return http.get('/system/patent/selectReadyConfirmPage', data)
  },
  addPatentInfoToOnline:(data) => {
    return http.post('/system/patent/addPatentInfoToOnline', data)
  }
}
export default patentService
